<template>
	<view class="content">
		<view class="left">
			<view class="block">
				<view class="title font30">
					预定数量
				</view>
				<view class="num font30 fontw">
					{{reserve}}
				</view>
				<view class="icon">


					<image src="../../../static/images/dietitian/shop.png" mode="aspectFit"></image>


					<image src="../../../static/images/dietitian/shop.png" mode="aspectFit"></image>

					<image src="/dietitian/static/images/shop.png" mode="aspectFit"></image>



					<image src="/dietitian/static/images/shop.png" mode="aspectFit"></image>

				</view>
			</view>
			<view class="block">
				<view class="title font30">
					空余数量
				</view>
				<view class="num font30 fontw">
					{{n_reserve}}
				</view>
				<view class="icon">


					<image src="../../../static/images/dietitian/num.png" mode="aspectFit"></image>


					<image src="../../../static/images/dietitian/num.png" mode="aspectFit"></image>

					<image src="/dietitian/static/images/num.png" mode="aspectFit"></image>



					<image src="/dietitian/static/images/num.png" mode="aspectFit"></image>

				</view>
			</view>
		</view>
		<view class="titles font30 font600">
			预定详情
		</view>
		<view class="list">
			<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="scrolltolower">
				<view class="orde">
					<view class="item" v-for="(item,index) in list" :key="index">
						<view class="left">
							<view class="image">
								<image :src="item.image" mode="aspectFit"></image>
							</view>
							<view class="shopInfo">
								<view class="title font30 fontw">
									{{item.name}}
								</view>
								<view class="price font24 fontw">
									<text class="font18">￥</text>{{item.price}}
								</view>
								<view class="service">
									<view class="lever font22">


										<image src="../../../static/images/dietitian/my.png" mode="aspectFit"></image>


										<image src="../../../static/images/dietitian/my.png" mode="aspectFit"></image>

										<image src="/dietitian/static/images/my.png" mode="aspectFit"></image>



										<image src="/dietitian/static/images/my.png" mode="aspectFit"></image>

										{{item.person}}
									</view>
								</view>
								<view class="time font22">


									<image src="../../../static/images/dietitian/time.png" mode="aspectFit"></image>


									<image src="../../../static/images/dietitian/time.png" mode="aspectFit"></image>

									<image src="/dietitian/static/images/time.png" mode="aspectFit"></image>



									<image src="/dietitian/static/images/time.png" mode="aspectFit"></image>

									{{item.time}}
								</view>
							</view>
						</view>
						<view class="btnBox">
							<view class="business">
								<view class="title font22">
									营业时间
								</view>
								<view class="time font18">
									{{item.time}}
								</view>
							</view>
							<view class="btn font22" v-if="item.status == 1">
								已预定
							</view>
						</view>
					</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				reserve: '565646.00',
				n_reserve: '565646.00',
				scrollTop: 0,
				list: [{


					image: '../../../static/logo.png',


					image: '../../../static/logo.png',

					image: '/static/logo.png',



					image: '/static/logo.png',

					name: '草本中医养生馆草本中医养生馆',
					price: '0.01',
					person: '张先生',
					time: '2024-08-31 10:40',
					status: '1'
				}, {


					image: '../../../static/logo.png',


					image: '../../../static/logo.png',

					image: '/static/logo.png',



					image: '/static/logo.png',

					name: '草本中医养生馆草本中医养生馆',
					price: '0.01',
					person: '张先生',
					time: '2024-08-31 10:40',
					status: '1'
				}, {


					image: '../../../static/logo.png',


					image: '../../../static/logo.png',

					image: '/static/logo.png',



					image: '/static/logo.png',

					name: '草本中医养生馆草本中医养生馆',
					price: '0.01',
					person: '张先生',
					time: '2024-08-31 10:40',
					status: '1'
				}]
			};
		},
		methods: {
			scrolltolower() {}
		}

	}
</script>

<style lang="scss">
	.content {
		padding: 21rpx 43rpx;

		.left {
			justify-content: space-between;

			.block {
				width: 256rpx;
				height: 167rpx;
				background: #C7FFEC50;
				border-radius: 21rpx;
				position: relative;
				padding: 38rpx 34rpx;

				.title {}

				.num {
					color: #1EB481;
				}

				.icon {
					position: absolute;
					bottom: 15rpx;
					right: 23rpx;
					width: 62rpx;
					height: 56rpx;

					image {
						width: 62rpx;
						height: 56rpx;
					}
				}
			}
		}

		.titles {
			margin: 30rpx 0 21rpx 0;
		}

		.list {

			.scroll-Y {
				height: calc(100vh - 400rpx);

				.orde {
					.item {
						background-color: #fff;
						border-radius: 10rpx;
						padding: 26rpx 25rpx 38rpx 31rpx;
						display: flex;
						align-items: center;
						justify-content: space-between;
						margin-bottom: 17rpx;

						.left {
							.image {
								width: 165rpx;
								height: 165rpx;
								border-radius: 24rpx;
								overflow: hidden;
								margin-right: 30rpx;

								image {
									width: 165rpx;
									height: 165rpx;
								}
							}

							.shopInfo {
								width: 248rpx;
								height: 165rpx;
								display: flex;
								flex-direction: column;
								justify-content: space-between;

								.title {
									display: -webkit-box;
									-webkit-line-clamp: 1;
									/* 显示的行数 */
									-webkit-box-orient: vertical;
									overflow: hidden;
								}

								.price {
									color: #FF4A00;
								}

								.service {
									display: flex;
									align-items: center;

									.lever {
										color: #666666;
										margin-right: 22rpx;
										display: flex;
										align-items: center;

										image {
											width: 21rpx;
											height: 19rpx;
											margin-right: 6rpx;
										}
									}

									.num {
										color: #666666;
									}
								}

								.time {
									color: #666666;
									display: flex;
									align-items: center;

									image {
										width: 16rpx;
										height: 20rpx;
										margin-right: 6rpx;
									}
								}
							}
						}

						.btnBox {
							display: flex;
							flex-direction: column;
							justify-content: center;
							align-items: center;

							.business {
								display: flex;
								flex-direction: column;
								justify-content: center;
								align-items: center;
								border: 1px solid #1EB481;
								border-radius: 8rpx;
								overflow: hidden;
								margin-bottom: 29rpx;

								.title {
									width: 100%;
									height: 39rpx;
									background: linear-gradient(0deg, #2AB883 0%, #89D894 100%);
									color: #fff;
									text-align: center;
									padding: 4rpx 0;
								}

								.time {
									color: #1EB481;
									padding: 4rpx 0;
									text-align: center;
								}
							}

							.btn {
								width: 110rpx;
								height: 43rpx;
								background: linear-gradient(0deg, #2AB883 0%, #89D894 100%);
								border-radius: 40rpx;
								color: #ffffff;
								line-height: 43rpx;
								text-align: center;
							}
						}
					}
				}
			}
		}
	}
</style>